package com.sequoiadb.demo;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;



/**
 * Created by gaoshengjie on 2015/7/3.
 */
public class HelloSequoiadb {
    public static void main(String[] args) {

        ApplicationContext context = new ClassPathXmlApplicationContext("context.xml");

        StudentDAO dao = (StudentDAO) context
                .getBean("studentDAO");
        System.out.println(dao.findOne(null,null));

    }
}
